import Vue from 'vue'
export const auth = {
  login: (params) => {
    return Vue.prototype.$post('auth/login', params)
  },
  logout: () => {
    return Vue.prototype.$get('auth/logout')
  },
  getCaptcha: () => {
    return Vue.prototype.$get('auth/captcha')
  },
  userInfo:token=>{
    return Vue.prototype.$get(`common/userInfo/${token}`)
  }
}
